import numpy as np
import matplotlib.pyplot as plt
import os

list_temp = []
for root, dirs, files in os.walk("."):
    for filename in files:
        list_temp.append(filename)

kw = ['Angle']

filelist = []
for items in list_temp:
    for ele in kw:
        if ele in items:
            filelist.append(items)

ang = []
for i in range(len(filelist)):
    str1 = "FFT"+filelist[i][5:]
    cmd1 = "mv ../" + str1 + " ./"
    os.system(cmd1)
